import request from '~/utils/resquest'

//  通讯数据-列表
export const deviceListPageGet = <T>(params: T) => {
  return request({
    url: '/api/gxsaas-monitor/data/communication/deviceListPage',
    method: 'GET',
    params
  })
}

//  通讯数据-列表-详情
export const deviceListPageInfoGet = <T>(params: T) => {
  return request({ url: '/api/gxsaas-monitor/data/communication/list', method: 'GET', params })
}

// 通信数据-导出
export const communicationExport = <T>(payload: T) =>
  request({
    url: '/api/gxsaas-monitor/data/communication/export',
    method: 'get',
    responseType: 'blob',
    ...payload
  })
